from django.urls import path, re_path
# from rest_framework.routers import DefaultRouter
from rest_framework_jwt.views import obtain_jwt_token
from user import views

# router = DefaultRouter()
# router.register('user', views.UserModelViewSet)
urlpatterns = [
    path('email/', views.EmailView.as_view()),
    path('register/', views.RegisterView.as_view()),
    path('login/', obtain_jwt_token),
]
# urlpatterns += router.urls
# 1. 不带pk  get ->  list ,   post  ->   create
# 2. 带pk    get  -> retrieve,  put  ->  update,   delete  ->  destroy
